home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 January / Disc 3 / Amethyst.iso / live / etc / makedev.d / scsigen < prev    next >
Encoding:
Text File  |  2002-11-06  |  220 b   |  7 lines

  1. $numdevs{$name} = 64;    $stddevs{$name} = "^(sg.|sg1[0-5])\$";
  2.  
  3. $generate{$name} = sub {
  4.     &$MkNod ("private", sprintf("sg%d", $i), "c", 21, $i);
  5.     $i < 8 && &$SymLink (sprintf("sg%d", $i), sprintf("sg%c", 97+$i));
  6. };
  7.